package com.water.mapper;

import com.water.entity.Price;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @program: city_water
 * @description:
 * @author: lydms
 * @create: 2024-05-18 16:49
 **/

@Mapper
public interface PriceMapper {

    /**
     * 根据城市查询价格
     * @param region
     * @return
     */
    @Select("select * from pricing where region=#{region}")
     Price selectByRegion(String region);


}
